package com.atguigu.gulimall.coupon;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * 1.Nacos作为配置中心统一管理配置
 * <1>pom文件添加依赖
 *       <!--        配置中心来做配置管理-->
 *         <dependency>
 *             <groupId>com.alibaba.cloud</groupId>
 *             <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
 *         </dependency>application.yml
 *  <2>apllication同级目录下建立bootstrap.properties</>
 *  <3>给配置中心添加一个数据集 规则命名 应用名字.properties</>
 *  <4>动态获取配置  @RefreshScope @Value("${配置项的名字}")</>
 */
@SpringBootApplication
@EnableDiscoveryClient
public class GulimallCouponApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallCouponApplication.class, args);
    }

}
